import pyautogui
#运行此文件前请先打开画图软件，然后选择完画笔后，再运行本程序。
#https://blog.csdn.net/weixin_39527292/article/details/114726050
#2021-4-25 13:16
distance =200
while distance > 0:
        pyautogui.drag(distance,0,duration=0.5)     #move right
        distance -=5
        pyautogui.drag(0,distance,duration=0.5)     #move down
        pyautogui.drag(-distance,0,duration=0.5)    #move left
        distance -=5
        pyautogui.drag(0,-distance,duration=0.5)    #move up
